package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.PgdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface PgdService extends BaseService<PgdBean> {

	PgdBean getPgdBeanById(String id) throws Exception;
	
	void removePgdBeanById(String id) throws Exception;
	
	void removePgdBeanByIds(String ids) throws Exception;
	
	PgdBean savePgdBean(PgdBean crm) throws Exception;
	
	PgdBean updatePgdBean(PgdBean crm) throws Exception;
	
	Page<PgdBean>  findPgdBeanByCond(PgdBean bean,
			Page<PgdBean> page, String orderByName, boolean asc)
			throws Exception;
	void savePgdBeanExt(String sql) throws Exception;

	String findPgdBeanExtCreate(String tableName) throws Exception;

	String findPgdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findPgdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasPgdBeanExtData(String tableName, String id)
			throws Exception;
}